package com.skypan.myapplication.http;

import com.google.gson.Gson;
import com.skypan.myapplication.bean.NoteR;
import com.skypan.myapplication.bean.RangeR;
import com.zhy.http.okhttp.callback.Callback;

import java.io.IOException;

import okhttp3.Response;

public abstract class RangeCallback extends Callback<RangeR>
{
    @Override
    public RangeR parseNetworkResponse(Response response, int id) throws IOException
    {
        String string = response.body().string();
        RangeR range = new Gson().fromJson(string, RangeR.class);
        return range;
    }
}
